package com.holyn.guofang.presenter.distinguish;

import com.holyn.guofang.model.webhttp.wo.ProductGroupWo;
import com.holyn.guofang.model.webhttp.wo.ProductServiceWo;
import com.holyn.guofang.presenter.AbstractBasePresenterImp;
import com.holyn.guofang.presenter.BaseView;

/**
 * Created by Holyn on 2017/7/11.
 */

public class ProductClassfiyContract {
    public  static abstract class  Presenter extends AbstractBasePresenterImp {
        public Presenter(BaseView baseView) {
            super(baseView);
        }

        public abstract void addGroupView(ProductClassfiyContract.GroupView groupView);
        public abstract void addServiceView(ProductClassfiyContract.ServiceView serviceView);

        /**
         * 类似群
         */
        public abstract void postProductGroupList(
                final int requestAction,
                String typeCode,
                String groupCode,
                Integer pageSize,
                Integer page
        );

        /**
         * 商品查询
         */
        public abstract void postProductServiceList(
                final int requestAction,
                String typeCode,
                String groupCode,
                String productName,
                Integer pageSize,
                Integer page
        );
    }

    /**
     * 类似群
     */
    public interface GroupView {
        void responseSuccess(Integer requestAction, ProductGroupWo productGroupWo);
    }

    /**
     * 商品查询
     */
    public interface ServiceView {
        void responseSuccess(Integer requestAction, ProductServiceWo productServiceWo);
    }
}
